package com.jcp.service.imple;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jcp.dao.PayMapper;
import com.jcp.entity.Parment;
import com.jcp.entity.Record;
import com.jcp.entity.Users;
import com.jcp.service.PayService;
@Service
public class PayServiceImpl implements PayService {

	@Autowired
	private PayMapper pm;

	@Override
	public List<Users> selectMoney(String phoneNumber) {
		// TODO Auto-generated method stub
		return pm.selectMoney(phoneNumber);
	}

	@Override
	public List<Record> selectrecordbycar(String phoneNumber) {
		// TODO Auto-generated method stub
		return pm.selectrecordbycar(phoneNumber);
	}

	@Override
	public boolean addremainder(double remainder, String phoneNumber) {
		// TODO Auto-generated method stub
		return pm.addremainder(remainder, phoneNumber)>0;
	}

	@Override
	public boolean reduceremainder(double remainder, String phoneNumber) {
		// TODO Auto-generated method stub
		return pm.reduceremainder(remainder, phoneNumber)>0;
	}

	@Override
	public List<Parment> selectparmt(String phoneNumber) {
		// TODO Auto-generated method stub
		return pm.selectparmt(phoneNumber);
	}

	@Override
	public int JCPhuiyuan(String time, String phoneNumber) {
		// TODO Auto-generated method stub
		return pm.JCPhuiyuan(time, phoneNumber);
	}
	

}
